package com.mao.controller;

import com.mao.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Kechelle
 * @Date 2020/9/8 14:32
 * @Version 1.0
 */
@RestController
@Controller
public class ConsumerController {

    @Autowired
    private ConsumerService consumerService;

    @RequestMapping(value = "/allUser",method = RequestMethod.GET)
    public Object allUser(){
        return consumerService.getAllUser();
    }
}
